package com.huadi.ssm.service;


import com.huadi.ssm.mapper.AchievementMapper;
import com.huadi.ssm.po.Achievement;
import com.huadi.ssm.po.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class AchievementServiceImpl implements AchievementService {

    @Autowired
    private AchievementMapper achievementMapper;

    @Override
    public Achievement findByItem(String item) {
        return achievementMapper.findByItem(item);
    }

    @Override
    public int add(Achievement achievement) {
        return achievementMapper.add(achievement);
    }

    @Override
    public int edit(Achievement achievement) {
        return achievementMapper.edit(achievement);
    }

    @Override
    public int delete(String ids) {
        return achievementMapper.delete(ids);
    }

    @Override
    public List<Achievement> findList(Map<String, Object> queryMap) {
        return achievementMapper.findList(queryMap);
    }

    @Override
    public List<Achievement> findAll() {
        return achievementMapper.findAll();
    }

    @Override
    public int getTotal(Map<String, Object> queryMap) {
        return achievementMapper.getTotal(queryMap);
    }

    @Override
    public List<Achievement> findByProjectid(String projectid) {
        return achievementMapper.findByProjectid(projectid);
    }

    @Override
    public List<Achievement> findByResearchid(String researchid) {
        return achievementMapper.findByResearchid(researchid);
    }

    @Override
    public int findForStats(Map<String, Object> queryMap) {
        return achievementMapper.findForStats(queryMap);
    }
}
